import request from '@/utils/request'

// 查询染色计划列表
export function listDye(query) {
    return request({
        url: '/plan/dye/list',
        method: 'get',
        params: query
    })
}

// 查询染色计划详细
export function getDye(id) {
    return request({
        url: '/plan/dye/' + id,
        method: 'get'
    })
}

// 新增染色计划
export function addDye(data) {
    return request({
        url: '/plan/dye',
        method: 'post',
        data: data
    })
}

// 修改染色计划
export function updateDye(data) {
    return request({
        url: '/plan/dye',
        method: 'put',
        data: data
    })
}

// 删除染色计划
export function delDye(id) {
    return request({
        url: '/plan/dye/' + id,
        method: 'delete'
    })
}

// 导出染色计划
export function exportDye(query) {
    return request({
        url: '/plan/dye/export',
        method: 'get',
        params: query
    })
}
